package com.liqi.display.service.impl;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.liqi.display.common.EffectiveItem;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.liqi.display.mapper.DeviceBackMapper;
import com.liqi.display.service.DeviceService;

@Service
public class DeviceServiceImpl implements DeviceService {

	private Logger logger = LoggerFactory.getLogger(DeviceServiceImpl.class);

	@Autowired
    private DeviceBackMapper deviceBackMapper;
	
	@DS("device_back")
    public Integer getThird(String start,String end) {
        List<String> codeList =  new ArrayList<>();
        codeList.add(EffectiveItem.JINGDUCHAXUN_SERVICE_CODE);
        String serviceCodeList = StringUtils.join(codeList,",");
        Integer integer = deviceBackMapper.totalBidType2(start,end,serviceCodeList);
        return integer;
    }
}
